package com.example.allplan.JavaBean;

import java.util.Comparator;

public class JiHuaBaoJavaBean implements Comparable<JiHuaBaoJavaBean> {
    public JiHuaBaoJavaBean(){};
    public JiHuaBaoJavaBean(int id, int pai_xu_you_biao, int biao_qing_fu_hao_zhi, int lei_xing, int ji_hua_shu, String bao_ming) {
        this.id = id;
        this.pai_xu_you_biao = pai_xu_you_biao;
        this.biao_qing_fu_hao_zhi = biao_qing_fu_hao_zhi;
        this.lei_xing = lei_xing;
        this.ji_hua_shu = ji_hua_shu;
        this.bao_ming = bao_ming;
    }

    /**
     * id : 0
     * pai_xu_you_biao : 1
     * biao_qing_fu_hao_zhi : 1
     * lei_xing : 1
     * ji_hua_shu : 1
     * bao_ming : 233
     */

    private int id;
    private int pai_xu_you_biao;
    private int biao_qing_fu_hao_zhi;
    private int lei_xing;
    private int ji_hua_shu;
    private String bao_ming;
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getPai_xu_you_biao() {
        return pai_xu_you_biao;
    }

    public void setPai_xu_you_biao(int pai_xu_you_biao) {
        this.pai_xu_you_biao = pai_xu_you_biao;
    }

    public int getBiao_qing_fu_hao_zhi() {
        return biao_qing_fu_hao_zhi;
    }

    public void setBiao_qing_fu_hao_zhi(int biao_qing_fu_hao_zhi) {
        this.biao_qing_fu_hao_zhi = biao_qing_fu_hao_zhi;
    }

    public int getLei_xing() {
        return lei_xing;
    }

    public void setLei_xing(int lei_xing) {
        this.lei_xing = lei_xing;
    }

    public int getJi_hua_shu() {
        return ji_hua_shu;
    }

    public void setJi_hua_shu(int ji_hua_shu) {
        this.ji_hua_shu = ji_hua_shu;
    }

    public String getBao_ming() {
        return bao_ming;
    }

    public void setBao_ming(String bao_ming) {
        this.bao_ming = bao_ming;
    }




    @Override
    public int compareTo(JiHuaBaoJavaBean o) {
        if(this.pai_xu_you_biao>o.pai_xu_you_biao){
            return 1;
        }else return -1;

    }
}
